/*
 * @Author: lp
 * @Date: 2022-01-25 16:14:45
 * @LastEditTime: 2022-04-08 17:49:13
 * @LastEditors: Please set LastEditors
 * @Description: 路由仓库模块
 * @FilePath: \nien-vue3-admin\src\store\modules\router.ts
 */
import { defineStore } from 'pinia'
// import request from "@/utils/request";
const router = defineStore('routers', {
  state: () => ({
    sidebarRoutes: [],
    accessedRoutes: [],
  }),
  actions: {
    setSidebarRoutes(v) {
      this.sidebarRoutes = v
    },
    setAccessedRoutes(v) {
      this.accessedRoutes = v
    },
  },
})
export default router
